<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ include file="common/commonTopOther.jsp"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib uri="/struts-tags" prefix="s"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>

<title>My JSP 'LookLunTan.jsp' starting page</title>
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">
<link href="css/bootstrap.css" rel="stylesheet" type="text/css" media="all">
<link href="css/style.css" rel="stylesheet" type="text/css" media="all" />
<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
<script type="text/javascript">
function check(){
if(document.getElementById("personlySay").value==""){
    alert("个人说明不能为空");
    return false;
  }
if(document.getElementById("volunteerSlogan").value==""){
    alert("志愿口号不能为空");
    return false;
  }
}
</script>
</head>
<body>
 <div style="margin-top:140px;"></div>
	<s:iterator value="#session.user">
	
		<div style="float:left;margin-left:180px;">
			<img src="<s:property value="photo"/>" width="150px" height="150px"/>
			<p style="font-size:12px;font-weight: bold;margin-top:10px;text-align: center;"><s:property value="userName"/></p>
		</div>
		
		<div style="float:left;margin-left:80px;">
	     	<span style="color: #080808;">邮&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;箱:&nbsp;&nbsp;</span></td><td><s:property value="email"/><br>
		
			<span style="color: #080808;">联系方式:&nbsp;&nbsp;</span></td><td><s:property value="telephone"/><br>
		
			<span style="color: #080808;">联系地址:&nbsp;&nbsp;</span></td><td><s:property value="address"/><br>
		    <s:form action="update_saveInformations" namespace="/" method="post">
		
		<!-- 隐藏表单，用于传用户名 -->
		<input type="hidden" name="userName" value="<s:property value="userName"/>" /> 
		    
		    <div class="wow fadeInLeft" data-wow-delay="0.4s">
				<span style="color: #080808;">个人说明:</span>
			<input type="text" id="personlySay" value="<s:property value="#session.personlySay"/>" name="informations.personlySay" />
		    </div>
            <div class="wow fadeInLeft" data-wow-delay="0.4s">
				<span style="color: #080808;">志愿口号:</span>
			<input id="volunteerSlogan" type="text" value="<s:property value="#session.volunteerSlogan"/>" name="informations.volunteerSlogan" />
		    </div>
		    <br>		  
	           <c:choose>
				   <c:when test="${personlySay!=null}">
				   <a href="changeInformations.jsp">编辑个人资料</a>  
				   </c:when>
				   <c:otherwise>
				   <s:submit value="完善个人资料"  onclick="return check()"/>
				   </c:otherwise>
				</c:choose>
	   	</s:form>
	   	<br>
	   	<a href="personlyCenter.jsp">返回上一层</a>
		</div>
	</s:iterator>

	<div style="margin-top:500px;"></div>
</body>
</html>
<%@ include file="common/commonBottom.jsp"%>